package com.wl.shop.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.google.common.collect.Lists;
/**
 * <p>
 * 
 * </p>
 *
 * @author wangl
 * @since 2017-05-24
 */
@TableName("cms_article")
public class Article extends LongIdDataEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 栏目ID
     */
	@TableField("category_id")
	private String categoryId;
    /**
     * 文章标题
     */
	private String title;
    /**
     * 副标题
     */
	private String subtitle;
    /**
     * 文章权重
     */
	private Integer sort;
    /**
     * 是否显示
     */
	@TableField("is_show")
	private Boolean isShow;
    /**
     * 缩略图地址
     */
	@TableField("thum_img")
	private String thumImg;
    /**
     * 文章作者
     */
	private String author;
	/**
	 * 文章摘要
	 */
	private String abstracts;
    /**
     * 文章内容
     */
	private String content;
    /**
     * 是否允许评论
     */
	@TableField("is_allowcomments")
	private Boolean isAllowcomments;
	
	/**
	 * 文章点击数量
	 */
	private Integer click;
    /**
     * SEO标题
     */
	@TableField("seo_title")
	private String seoTitle;
    /**
     * SEO关键字
     */
	private String keywords;
    /**
     * SEO描述
     */
	private String description;
	
	/**
	 * 文章发布时间
	 */
	@TableField("publish_date")
	private Date publishDate;
	
	@TableField("publish_by")
	private String publishBy;
	
	/**
	 * 文章来源
	 */
	private String source;
	
	@TableField(exist = false)
	private String publishName;
	
	@TableField("category_name")
	private String categoryName;
	
	@TableField(exist = false)
	private List<FieldArticle> selfField = Lists.newArrayList();

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSubtitle() {
		return subtitle;
	}

	public void setSubtitle(String subtitle) {
		this.subtitle = subtitle;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getThumImg() {
		return thumImg;
	}

	public void setThumImg(String thumImg) {
		this.thumImg = thumImg;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getAbstracts() {
		return abstracts;
	}

	public void setAbstracts(String abstracts) {
		this.abstracts = abstracts;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSeoTitle() {
		return seoTitle;
	}

	public void setSeoTitle(String seoTitle) {
		this.seoTitle = seoTitle;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public Boolean getIsShow() {
		return isShow;
	}

	public void setIsShow(Boolean isShow) {
		this.isShow = isShow;
	}

	public Boolean getIsAllowcomments() {
		return isAllowcomments;
	}

	public void setIsAllowcomments(Boolean isAllowcomments) {
		this.isAllowcomments = isAllowcomments;
	}

	public Integer getClick() {
		return click;
	}

	public void setClick(Integer click) {
		this.click = click;
	}

	public String getPublishBy() {
		return publishBy;
	}

	public void setPublishBy(String publishBy) {
		this.publishBy = publishBy;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getPublishName() {
		return publishName;
	}

	public void setPublishName(String publishName) {
		this.publishName = publishName;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public List<FieldArticle> getSelfField() {
		return selfField;
	}

	public void setSelfField(List<FieldArticle> selfField) {
		this.selfField = selfField;
	}
	
}
